<template>
    <div class="product_list">
        <div class="product_list_link"
            v-for="(item,index) in productLists"
            :key="index"
            @click="productDetail(item)"
        >
            <div class="left">
                <img 
                :src="item.Simages"
                 alt="">
            </div>
            <div class="right">
                <h3>{{item.Stitle}}</h3>
                <b>累计已经拼了150件了</b>
                <span>￥{{item.Sprice}}</span>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        name:'ProductList',
        props:{
            productLists:{
                type:""
            }
        },
        methods: {
            productDetail(item){
                this.$router.push({
                    path:`/detail/${item.id}`
                })
            }
        },
    }
</script>

<style lang="scss" scoped>
.product_list{
    width: 100%;
    height:800px;
    background: #eee;
    margin-top: 10px;
    .product_list_link{
        width: 100%;
        height: 150px;
        display: flex;
        border-bottom: 1px solid #666;
        // justify-content: space-around;
        .left{
            width: 120px;
            height: 120px;
            background: #fff;
            margin: 10px 10px 0 10px;
            img{
                width: 120px;
            }
        }
        .right{
            margin: 20px 30px 0 0;
            h3{
               font-size: 18px;
            }
            b{
                color: #999999;
                font-size: 12px;
                display: block;
                padding: 10px 0;
            }
            span{
                font-size: 26px;
                color: red;
                padding-top: 50px;
            }
        }
    }
}
</style>